<!DOCTYPE html>
<html class="ui-page-login">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  <title>绑定淘宝</title>
  <link rel="stylesheet" type="text/css" href="../css/aui.css" />



</head>

<body>
    <section class="aui-grid">
        <div class="aui-row" >
            <div class="aui-col-xs-3" style="line-height:47px;padding:0 0;">
                手机号：
            </div>
            <div class="aui-col-xs-9" style="line-height:47px;padding:0 0;">
                <input type="text" placeholder="请输入手机号">
            </div>
            <div class="aui-col-xs-3" style="line-height:47px;padding:0 0;">
                <input type="text" placeholder="请输入验证码">
            </div>
            <div class="aui-col-xs-1" style="line-height:47px;padding:0 0;">

            </div>
            <div class="aui-col-xs-2" style="line-height:47px;padding:0 0;">
                获取验证码：
            </div>

        </div>
    </section>
    <script type="text/javascript">
        // 打开注册Window
        function fnOpenRegisterWin() {
            api.openWin({
                name: 'userRegister_frm',
                url: './userRegister_frm.html',
                pageParam: {
                    name: 'test'
                }
            });
        }
    </script>


    <script src="js/mui.min.js"></script>
    <script src="js/mui.enterfocus.js"></script>
    <script src="js/app.js"></script>
    <script type="text/javascript" src="../script/api.js"></script>
    <script type="text/javascript" src="../script/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="./conf/config.js"></script>
    <script type="text/javascript" src="./js/common.js"></script>
    <script type="text/javascript">
        apiready = function() {

        };

        //登录
        function login() {
            var phone = $api.byId('account').value;
            var pasword = $api.byId('password').value;
            if (phone != '') {
                api.ajax({
                    url: SITE_URL+'index.php?m=api&c=appp&a=login',
                    method: 'GET',
                    data: {
                        values: {
                            "phone": phone,
                            "pasword": pasword
                        }
                    }
                }, function(ret, err) {
                    if (ret.result == 0) {
                        api.alert({
                            msg: '登录失败'
                        });
                    } else {
                        api.openWin({
                            name: 'userRegister_frm',
                            url: './userRegister_frm.html',
                            pageParam: {
                                name: 'test'
                            }
                        });
                    }
                });
            } else {
                alert('请填写手机号');
            }

        }
    </script>
</body>

</html>
